/*-------------------------------------------------------- 
* Module Name : OLBanner
* Version : 1.0
* 
* Software Name : Qt App Template
* Version : 1.0
*
* Copyright � 2010 � 2011 France T�l�com
* This software is distributed under the LGPL v2.1 license,
* the text of which is available at http://www.gnu.org/licenses/lgpl-2.1.html
* or see the "LICENSE.txt" file for more details.
*
*--------------------------------------------------------
* File Name   : OLBanner.h
*
* Created     : 07 June 2011
* Author(s)   : Omer Saleem
*
* Description :
* Text banner dialog object for displaying simple text-based
* messages to the user.
*
*--------------------------------------------------------
* 1.0 - First open source release
*
*/

#ifndef OLBANNER_H
#define OLBANNER_H

#include <QtGui/QWidget>

class OLBanner : public QWidget
{
    Q_OBJECT
    Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)

    void setOpacity(qreal opacity);
    qreal opacity();
	
public:
    explicit OLBanner(QWidget *parent = 0);
    void adjustSize(const QSize& parentsize);

public slots:
    void setText(const QString& text);

protected:
    // from QWidget
    virtual void paintEvent(QPaintEvent* e);

private:
    qreal m_opacity;
    QString m_text;
};

#endif // OLBANNER_H
